package com.kim.nidoya.activity;

import com.kim.nidoya.R;
import com.kim.nidoya.utils.ActivityDispatchUtil;

import android.view.View;
import android.widget.RelativeLayout;

public class SettingsActivity extends BaseActivity {
	RelativeLayout recommend_to_friends;
	RelativeLayout report_problem;
	RelativeLayout rl_about;

	@Override
	protected void initParam() {

	}

	@Override
	protected void initView() {
		setContentView(R.layout.settings_activty_layout);

		recommend_to_friends = (RelativeLayout) findViewById(R.id.settings_rl_recommend_to_friends);
		report_problem = (RelativeLayout) findViewById(R.id.settings_rl_report_problem);
		rl_about = (RelativeLayout) findViewById(R.id.settings_rl_about);

		recommend_to_friends.setOnClickListener(this);
		report_problem.setOnClickListener(this);
		rl_about.setOnClickListener(this);

	}

	@Override
	public void onClick(View v) {
		int vid = v.getId();
		switch (vid) {
		case R.id.settings_rl_recommend_to_friends://向朋友推荐
			ActivityDispatchUtil.openNewActivity(this, RecommendToFriendsActivity.class, SettingsGroup.group, "RecommendToFriendsActivity");
			break;
		case R.id.settings_rl_report_problem://问题反馈
			ActivityDispatchUtil.openNewActivity(this, ReportProblemActivity.class, SettingsGroup.group, "ReportProblemActivity");
			break;

		case R.id.settings_rl_about://关于界面
			ActivityDispatchUtil.openNewActivity(this, AboutActivity.class, SettingsGroup.group, "AboutActivity");
			break;

		default:
			break;
		}
	}

}
